Create a generic callback mechanism for Xen-bound event channels
authorAndres Lagar-Cavilla <andres@lagarcavilla.org>
Tue, 6 Dec 2011 20:10:32 +0000 (20:10 +0000)
committerAndres Lagar-Cavilla <andres@lagarcavilla.org>
Tue, 6 Dec 2011 20:10:32 +0000 (20:10 +0000)
commitaf875b02aa89dd5ec79812928c75af7eb8182306
treeb20f2d8b3635ca4bcd4a8bfdc2d69dd6c431647d
parenta85f0caca62f4909c92927f1fd671bb0cce273f2
Create a generic callback mechanism for  Xen-bound event channels

For event channels for which Xen is the consumer, there currently is
a single action. With this patch, we allow event channel creators to
specify a generic callback (or no callback). Because the expectation
is that there will be few callbacks, they are stored in a small table.

Signed-off-by: Adin Scannell <adin@scannell.ca>
Signed-off-by: Keir Fraser <keir@xen.org>
Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Committed-by: Tim Deegan <tim@xen.org>
xen/arch/ia64/vmx/vmx_init.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/mm/mem_event.c
xen/common/event_channel.c
xen/include/xen/event.h
xen/include/xen/sched.h